﻿#ifndef DAEMONLOGDIALOG_H
#define DAEMONLOGDIALOG_H

#include <QDialog>
#include <QStandardItemModel>
#include <daemonlogservice.h>

namespace Ui {
class DaemonLogDialog;
}

class DaemonLogDialog : public QDialog
{
    Q_OBJECT

public:
    explicit DaemonLogDialog(QWidget *parent = nullptr);
    ~DaemonLogDialog();
public slots:
    void slot_gotoPage(qlonglong nowPage, int pageCount);
    void slot_selectAll();
private slots:
    void on_selBtn_clicked();

    void on_clearLog_clicked();

private:
    Ui::DaemonLogDialog *ui;
    DaemonLogService daemonLogService;
    QStandardItemModel *tableModel;
    QList<int> columnWidthList;
    int pageCount;
    qlonglong nowPage;
};

#endif // DAEMONLOGDIALOG_H
